package LawsonTransformJava.data;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;


public class TblPAEmpPos extends TblDate {
	public int 		employee	=0;
	public int 		pos_level	=0;
	public Date		effect_date	=null;
	public Date 	end_date	=null;
	public String 	position	=null; 
	public String 	job_code	=null; 
	public String 	process_level	=null; 
	public String 	department	=null; 
	public String 	user_level	=null; 
	public String 	supervisor	=null; 
	public String 	supervisor_ind	=null; 
	public String 	locat_code	=null; 
	public String 	union_code	=null;
	public float	fte	 	=0; 
	public float    pay_rate	=0; 
	public String 	schedule	=null; 
	public String 	pay_grade	=null; 
	public int 		pay_step	=0; 
	public String 	work_sched	=null; 
	public int     	r_shift	 	=0; 
	public float    pro_rate_a_sal	=0; 
	public int      annual_hours	=0; 
	public int 		exp_company	=0; 
	public String 	exp_acct_unit	=null; 
	public int 		exp_account	=0; 
	public int      exp_sub_acct	=0; 
	public String 	activity	=null; 
	public String 	acct_category	=null; 
	public Date     date_stamp	=null;
	public int      time_stamp	=0; 
	public String 	user_id		=null; 
	public String 	currency_code	=null; 
	public String 	base_currency	=null; 
	public float    base_pay_rate	=0;
	public String 	bargain_unit	=null; 
	public Date     date_assign	=null;
	public float    user_amount	=0;
	public String   salary_class =null;
	
//	private DateFormat df = new SimpleDateFormat("MM/dd/yyyy");
//	private DateFormat df2 = new SimpleDateFormat("yyyyMMdd");
	private String text; 
	
	public void setEmployee(int employee) {
		this.employee = employee;
	}
	public void setPos_level(int pos_level) {
		this.pos_level = pos_level;
	}
	public void setEffect_date(Date effect_date) {
		this.effect_date = effect_date;
	}
	public void setEnd_date(Date end_date) {
		this.end_date = end_date;
	}
	public void setPosition(String position) {
		this.position = position;
	}
	public void setJob_code(String job_code) {
		this.job_code = job_code;
	}
	public void setProcess_level(String process_level) {
		this.process_level = process_level;
	}
	public void setDepartment(String department) {
		this.department = department;
	}
	public void setUser_level(String user_level) {
		this.user_level = user_level;
	}
	public void setSupervisor(String supervisor) {
		this.supervisor = supervisor;
	}
	public void setSupervisor_ind(String supervisor_ind) {
		this.supervisor_ind = supervisor_ind;
	}
	public void setLocat_code(String locat_code) {
		this.locat_code = locat_code;
	}
	public void setUnion_code(String union_code) {
		this.union_code = union_code;
	}
	public void setFte(float fte) {
		this.fte = fte;
	}
	public void setPay_rate(float pay_rate) {
		this.pay_rate = pay_rate;
	}
	public void setSchedule(String schedule) {
		this.schedule = schedule;
	}
	public void setPay_grade(String pay_grade) {
		this.pay_grade = pay_grade;
	}
	public void setPay_step(int pay_step) {
		this.pay_step = pay_step;
	}
	public void setWork_sched(String work_sched) {
		this.work_sched = work_sched;
	}
	public void setR_shift(int r_shift) {
		this.r_shift = r_shift;
	}
	public void setPro_rate_a_sal(float pro_rate_a_sal) {
		this.pro_rate_a_sal = pro_rate_a_sal;
	}
	public void setAnnual_hours(int annual_hours) {
		this.annual_hours = annual_hours;
	}
	public void setExp_company(int exp_company) {
		this.exp_company = exp_company;
	}
	public void setExp_acct_unit(String exp_acct_unit) {
		this.exp_acct_unit = exp_acct_unit;
	}
	public void setExp_account(int exp_account) {
		this.exp_account = exp_account;
	}
	public void setExp_sub_acct(int exp_sub_acct) {
		this.exp_sub_acct = exp_sub_acct;
	}
	public void setActivity(String activity) {
		this.activity = activity;
	}
	public void setAcct_category(String acct_category) {
		this.acct_category = acct_category;
	}
	public void setDate_stamp(Date date_stamp) {
		this.date_stamp = date_stamp;
	}
	public void setTime_stamp(int time_stamp) {
		this.time_stamp = time_stamp;
	}
	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}
	public void setCurrency_code(String currency_code) {
		this.currency_code = currency_code;
	}
	public void setBase_currency(String base_currency) {
		this.base_currency = base_currency;
	}
	public void setBase_pay_rate(float base_pay_rate) {
		this.base_pay_rate = base_pay_rate;
	}
	public void setBargain_unit(String bargain_unit) {
		this.bargain_unit = bargain_unit;
	}
	public void setDate_assign(Date date_assign) {
		this.date_assign = date_assign;
	}
	public void setUser_amount(float user_amount) {
		this.user_amount = user_amount;
	}
	public void setSalary_class(String salary_class) {
		this.salary_class = salary_class;
	}
	
	
	
	public int getEmployee() {
		return employee;
	}
	public int getPos_level() {
		return pos_level;
	}
	public String getEffect_date() {
		return convertDate(effect_date);
	}
	public String getEnd_date() {
		return convertDate(end_date);
	}
	public String getPosition() {
		if (position==null||position.equals(""))
		{text = "";}
	else
		{text = "\""+position+"\"";}
	return text;		
	}
	public String getJob_code() {
		if (job_code==null||job_code.equals(""))
		{text = "";}
	else
		{text = "\""+job_code+"\"";}
	return text;		
	}
	public String getProcess_level() {
		if (process_level==null||process_level.equals(""))
		{text = "";}
	else
		{text = "\""+process_level+"\"";}
	return text;			
	}
	public String getDepartment() {
		if (department==null||department.equals(""))
		{text = "";}
	else
		{text = "\""+department+"\"";}
	return text;			
}
	public String getUser_level() {
		if (user_level==null||user_level.equals(""))
		{text = "";}
	else
		{text = "\""+user_level+"\"";}
	return text;				
	}
	public String getSupervisor() {
		if (supervisor==null||supervisor.equals(""))
		{text = "";}
	else
		{text = "\""+supervisor+"\"";}
	return text;				
	}
	public String getSupervisor_ind() {
		if (supervisor_ind==null||supervisor_ind.equals(""))
		{text = "";}
	else
		{text = "\""+supervisor_ind+"\"";}
	return text;			
	}
	public String getLocat_code() {
		if (locat_code==null||locat_code.equals(""))
		{text = "";}
	else
		{text = "\""+locat_code+"\"";}
	return text;			
	}
	public String getUnion_code() {
		if (union_code==null||union_code.equals(""))
		{text = "";}
	else
		{text = "\""+union_code+"\"";}
	return text;			
	}
	public float getFte() {
		return fte;
	}
	public float getPay_rate() {
		return pay_rate;
	}
	public String getSchedule() {
		if (schedule==null||schedule.equals(""))
		{text = "";}
	else
		{text = "\""+schedule+"\"";}
	return text;			
	}
	public String getPay_grade() {
		if (pay_grade==null||pay_grade.equals(""))
		{text = "";}
	else
		{text = "\""+pay_grade+"\"";}
	return text;			
	}
	public int getPay_step() {
		return pay_step;
	}
	public String getWork_sched() {
		if (work_sched==null||work_sched.equals(""))
		{text = "";}
	else
		{text = "\""+work_sched+"\"";}
	return text;			
	}
	public int getR_shift() {
		return r_shift;
	}
	public float getPro_rate_a_sal() {
		return pro_rate_a_sal;
	}
	public int getAnnual_hours() {
		return annual_hours;
	}
	public int getExp_company() {
		return exp_company;
	}
	public String getExp_acct_unit() {
		if (exp_acct_unit==null||exp_acct_unit.equals(""))
		{text = "";}
	else
		{text = "\""+exp_acct_unit+"\"";}
	return text;			
	}
	public int getExp_account() {
		return exp_account;
	}
	public int getExp_sub_acct() {
		return exp_sub_acct;
	}
	public String getActivity() {
		if (activity==null||activity.equals(""))
		{text = "";}
	else
		{text = "\""+activity+"\"";}
	return text;			
	}
	public String getAcct_category() {
		if (acct_category==null||acct_category.equals(""))
		{text = "";}
	else
		{text = "\""+acct_category+"\"";}
	return text;		
	}
	public String getDate_stamp() {
		return convertDate(date_stamp);
	}
	public int getTime_stamp() {
		return time_stamp;
	}
	public String getUser_id() {
		if (user_id==null||user_id.equals(""))
		{text = "";}
	else
		{text = "\""+user_id+"\"";}
	return text;			
	}
	public String getCurrency_code() {
		if (currency_code==null||currency_code.equals(""))
		{text = "";}
	else
		{text = "\""+currency_code+"\"";}
	return text;			
	}
	public String getBase_currency() {
		if (base_currency==null||base_currency.equals(""))
		{text = "";}
	else
		{text = "\""+base_currency+"\"";}
	return text;			
	}
	public float getBase_pay_rate() {
		return base_pay_rate;
	}
	public String getBargain_unit() {
		if (bargain_unit==null||bargain_unit.equals(""))
		{text = "";}
	else
		{text = "\""+bargain_unit+"\"";}
	return text;			
	}
	public String getDate_assign() {
		return convertDate(date_assign);
	}
	public float getUser_amount() {
		return user_amount;
	}
	public String getSalary_class() {
		if (salary_class==null||salary_class.equals(""))
		{text = "";}
	else
		{text = "\""+salary_class+"\"";}
	return text;				
	}

	public int compareEffectTo(Date compare_date) {
		if (compare_date==null || isDefault(compare_date))
			return -1;
		return effect_date.compareTo(compare_date);
	}
	
}